This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 564
New CLI tool #3085
Merged
Merged
New CLI tool #3085
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a816793
Started rewriting argParser
bb2a706
Type as object
6779dfe
Default values rework
1c67776
Fixes
ab1f0bb
Added library to compile resolve mechanism
1fbe134
Use jvmJar task
4fe7e5b
Forgotten changes in preformance project
a1e7e5e
Fixes for performance subproject
dd67d9c
Fixes + tests for help messages
2319df4
Renamed default to endorsed
7834699
Fix typo and warning level
849c409
Fix command line argumens style
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixes
- Loading branch information
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
kliopt/src/main/kotlin/org/jetbrains/kliopt/ExperimentalCli.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license | ||
* that can be found in the LICENSE file. | ||
*/ | ||
|
||
package org.jetbrains.kliopt | ||
|
||
import kotlin.annotation.AnnotationTarget.* | ||
|
||
/** | ||
* This annotation marks the experimental API for working with command line arguments. | ||
* | ||
* > Beware using the annotated API especially if you're developing a library, since your library might become binary incompatible | ||
* with the future versions of the CLI library. | ||
* | ||
* Any usage of a declaration annotated with `@ExperimentalCli` must be accepted either by | ||
* annotating that usage with the [UseExperimental] annotation, e.g. `@UseExperimental(ExperimentalCli::class)`, | ||
* or by using the compiler argument `-Xuse-experimental=org.jetbrains.kliopt.ExperimentalCli`. | ||
*/ | ||
@Experimental(level = Experimental.Level.ERROR) | ||
@Retention(AnnotationRetention.BINARY) | ||
@Target( | ||
CLASS, | ||
ANNOTATION_CLASS, | ||
PROPERTY, | ||
FIELD, | ||
LOCAL_VARIABLE, | ||
VALUE_PARAMETER, | ||
CONSTRUCTOR, | ||
FUNCTION, | ||
PROPERTY_GETTER, | ||
PROPERTY_SETTER, | ||
TYPEALIAS | ||
) | ||
@SinceKotlin("1.3") | ||
public annotation class ExperimentalCli |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't some characters be prohibited in
values
such as spaces and commas?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I amn't sure why we should provide such limitations, it can be any string value. What problems do you see?