Skip to content

Upgrading args 0.11 to 0.12

Unknown0.11.0+1 → 0.12.2+6

Fetching 11 releases from GitHub…0 / 11
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Dart SDK requirement changed in 0.12.2+6: >=1.0.0 <2.0.0 → >=1.4.0 <2.0.0.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: ctor ArgResults(this._options, this.name, this.command, List<String> rest)
  • removed: ctor Option(this.name, this.abbreviation, this.help, List<String> allowed, Map<String, String> allowedHelp, this.defaultValue, this.callback, {this.isFlag, this.negatable, this.allowMultiple = …, this.hide = …})
  • removed: field Option.allowMultiple: final bool
  • removed: field Option.isFlag: final bool
  • changed: method ArgParser.addOption(String name, {String abbr, String help, List<String> allowed, Map<String, String> allowedHelp, String defaultsTo, void callback(value), bool allowMultiple = …, bool hide = …}): void → method ArgParser.addOption(String name, {String abbr, String help, String valueHelp, List<String> allowed, Map<String, String> allowedHelp, String defaultsTo, void callback(value), bool allowMultiple = …, bool hide = …}): void
  • added: class OptionType
  • added: field ArgResults.arguments: final List<String>
  • added: field Option.type: final OptionType
  • added: field Option.valueHelp: final String
  • added: field OptionType.name: final String
  • added: get ArgParser.usage: String
  • added: get Option.isFlag: bool
  • added: get Option.isMultiple: bool
  • added: get Option.isSingle: bool
  • added: method ArgResults.wasParsed(String name): bool
  • added: method Option.getOrDefault(value): dynamic
  • added: static field OptionType.FLAG: const
  • added: static field OptionType.MULTIPLE: const
  • added: static field OptionType.SINGLE: const
  • added: class Command: abstract
  • added: class CommandRunner
  • added: class UsageException implements Exception
  • added: ctor Command()
  • added: ctor CommandRunner(this.executableName, this.description)
  • added: ctor UsageException(this.message, this.usage)
  • added: field Command.Command>(): final
  • added: field Command.aliases: final
  • added: field Command.argParser: final
  • added: field Command.takesArguments: final
  • added: field Command.usageFooter: final String
  • added: field CommandRunner.Command>(): final
  • added: field CommandRunner.argParser: final
  • added: field CommandRunner.description: final String
  • added: field CommandRunner.executableName: final String
  • added: field CommandRunner.usageFooter: final String
  • added: field UsageException.message: final String
  • added: field UsageException.usage: final String
  • added: get Command.argResults: ArgResults
  • added: get Command.description: String
  • added: get Command.globalResults: ArgResults
  • added: get Command.hidden: bool
  • added: get Command.invocation: String
  • added: get Command.name: String
  • added: get Command.parent: Command
  • added: get Command.runner: CommandRunner
  • added: get Command.subcommands: Map<String, Command>
  • added: get Command.usage: String
  • added: get CommandRunner.commands: Map<String, Command>
  • added: get CommandRunner.invocation: String
  • added: get CommandRunner.usage: String
  • added: method Command.addSubcommand(Command command): void
  • added: method Command.printUsage(): void
  • added: method Command.run()
  • added: method Command.usageException(String message): void
  • added: method CommandRunner.addCommand(Command command): void
  • added: method CommandRunner.parse(Iterable<String> args): ArgResults
  • added: method CommandRunner.printUsage(): void
  • added: method CommandRunner.run(Iterable<String> args): Future
  • added: method CommandRunner.runCommand(ArgResults topLevelResults): Future
  • added: method CommandRunner.usageException(String message): void
  • added: method UsageException.toString(): String