Skip to content

Commit

Permalink
restore --data alias for spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtrystram committed Sep 21, 2021
1 parent e29cea2 commit feda5b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@

## Deprecations
- `drg token` is removed. Please use `drg whoami --token`
- `--data` argument is deprecated. Use `--spec` instead.

3 changes: 2 additions & 1 deletion src/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub enum Other_flags {
pub fn parse_arguments() -> ArgMatches<'static> {
let resource_id_arg = Arg::with_name(Parameters::id.as_ref())
.required(true)
.help("The unique id of the resource.");
.help("The unique id of the resource.");

let set_arg = Arg::with_name(Verbs::set.as_ref())
.required(true)
Expand Down Expand Up @@ -151,6 +151,7 @@ pub fn parse_arguments() -> ArgMatches<'static> {
.help("The app owning the device. Can be set with DRG_APP environment variable.");

let spec_arg = Arg::with_name(Parameters::spec.as_ref())
.alias("data")
.short("s")
.long(Parameters::spec.as_ref())
.takes_value(true)
Expand Down

0 comments on commit feda5b4

Please sign in to comment.