class Fission::CommandLineParser
def is_snapshot_command?
# => true
@cli.is_snapshot_command? ['snapshot', 'list']
# => false
@cli.is_snapshot_command? ['foo', 'bar']
Examples
determination.
command. This will use the @args instance variable to make the
Internal: Determines if the provided command is a snapshot related
def is_snapshot_command? @args.first == 'snapshot' && @args.count > 1 && @commands.include?(@args.take(2).join(' ')) end